package com.ssy.lingxi.order.repository;

import com.ssy.lingxi.order.entity.OrderDeliveryProductDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 发货记录关联的商品Jpa仓库
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-17
 */
@Repository
public interface OrderDeliveryProductRepository extends JpaRepository<OrderDeliveryProductDO, Long>, JpaSpecificationExecutor<OrderDeliveryProductDO> {
    List<OrderDeliveryProductDO> findByOrderIdAndBatchNo(Long orderId, Integer batchNo);
}
